/**
 * Created by shaotingzhou on 2016/12/6.
 */
/**
 *  发布成功后供应发布信息页面
 */
import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    ListView,
    Image,
    TouchableOpacity,
    Platform,
    AsyncStorage
} from 'react-native';

import  NavigatorBar from '../Main/NXNavigationBar';  //NavigationBar
import  TextTextImage from './Text+Text+Image'  //供应发布页面的下方
import  TextTextInput from './Text+TextInput'; //企业的文字信息模块
class SupplyPublishInfo extends  React.Component {
    render () {
        return (
            <View style={styles.container}>
                {/*navigationBar*/}
                <NavigatorBar title='供应发布'  widthWH={Platform.OS == 'ios' ? 15:15} leftBtnName = 'Share_icon' rightBtnName = 'Share_icon' leftpress={()=>this.leftAction()} rightPress={()=>this.rightAction()}  />
                 {/*topView*/}
                <TextTextInput leftValue='基酒香型:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='酱香型' editable={false} />
                <TextTextInput leftValue='出售数量:'  rightValue = '吨' placeholder = '' keyboardType = 'number-pad' defaultValue='200' editable={false} />
                <TextTextInput leftValue='出售价格:'  rightValue = '元/吨' placeholder = '' keyboardType = 'number-pad' defaultValue='20000.00' editable={false} />
                <TextTextInput leftValue='基酒年份:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='6年' editable={false} />
                <TextTextInput leftValue='基酒等级:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='1级' editable={false} />
                <TextTextInput leftValue='基酒产区:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='四川' editable={false} />
                <TextTextInput leftValue='基酒原料:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='高粱' editable={false} />
                <TextTextInput leftValue='交割地:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='四川绵阳' editable={false} />
                <TextTextInput leftValue='有效区:'  rightValue = '' placeholder = '' keyboardType = 'number-pad' defaultValue='三个月' editable={false} />
                {/*分割线*/}
                <View style={{height:5,backgroundColor:'#E0EEEE'}}></View>
                {/*bottomView*/}
                <TextTextImage  cameraAction={()=>this.cameraAction()}/>

            </View>
        )
    }
    /*
     *
     *   占位方法,无实际作用,只是为了去除警告
     *   @param
     *   @returns
     * */
    leftAction(){

    }
    rightAction(){

    }
    //
    cameraAction = () =>{

    }

}

var styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    }
});

module.exports = SupplyPublishInfo;
